#include <stdio.h>

int main()
{
    float x;
    float result;
    scanf("%f",&x);
    if(x == 0){
        result = x;
    }
    else {
        result = 1 / x;   
    }
    printf("f(%.1f) = %.1f\n",x,result);
    return 0;
}